<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script>
      var stu = new Object()
      stu.sid = 'S1'
      stu.sname = 'zhang3'
      stu.age = 18
      stu.study = function () {
        console.log('=============stu=======study')
      }

      console.log('学号:' + stu.sid)
      console.log('姓名:' + stu.sname)
      console.log('年龄:' + stu.age)
      stu.study()
    </script>
  </head>
  <body></body>
</html>
